Magnetism of rocks and volumetric strain in uniaxial failure tests