Optimization of the energy efficiency of a piston compressed air engine