Periodic optimal cruise of a hypersonic vehicle