Economic thermodynamics and inflation