Modeling and design of an ultra low-power NEMS relays: application to logic gate inverters