Step-induced magnetic-hysteresis anisotropy in ferromagnetic thin films