Real-time Stabilization of a Quadrotor UAV: Nonlinear Optimal and Suboptimal Control