Soft x-ray resonant magnetic scattering from an imprinted magnetic domain pattern