Thermodynamics of refrigeration