Design and fabrication of electrostatically actuated nanoelectromechanical relays and their integration with CMOS