2 types of magnetism in minerals