An alternating peak-optimization method for optimal trajectory generation of quadrotor drones