what is fundamentally responsible for the magnetic properties of different materials?