THERMODYNAMICS OF ENERGY STORAGE IN COMPRESSED AIR