Magnetic anisotropy of rocks and its application in geology and geophysics