Magnetometer based attitude determination system using a reduced order Kalman filter