A resonant micro accelerometer based on electrostatic stiffness variation