Generating optimal aircraft trajectories with respect to weather conditions