Exploitation of non-linearities in CMOS-NEMS electrostatic resonators for mechanical memories