Quaternion-based Dual loop Nonlinear Trajectory Control of Quadrotors