Physics of spin in solids : materials, methods and applications