Nonlinear Adaptive State Estimator Approach to Attitude and Orbit Determination Using Only a Magnetometer