Magnetic properties of solids