accelerometer block diagram