Thermodynamics of cooperative phenomena in magnetic materials.