Rigid-body pose and twist estimation using an accelerometer array