New solution method for latent energy storage and thermoeconomic optimization for an air conditioning system