A mechanical model of the smartphone's accelerometer