Closed-Form Position and Orientation Estimation for a Three-Axis Electromagnetic Tracking System