Numerical approach for solving rigid spacecraft minimum time attitude maneuvers