Magneto-optic determination of magnetic recording head fields