accelerometer sensor working principle pdf