Sensors for vibration and acceleration