Magnetic tunnel junction based out-of-plane field sensor with perpendicular magnetic anisotropy in reference layer