Periodic control and the optimality of aircraft cruise