On transforming accelerometer data to angular rate