The use of the anisotropic magnetoresistance to study exchange coupling