Mechanics and thermodynamics of propulsion.