Digital Logic And Multi-Valued Memory Using Nems Switches