NMPC and Genetic Algorithm Based Approach for Trajectory Tracking of UAVs