The Mössbauer effect and magnetism