Magnetic order in a submicron patterned permalloy film studied by resonant x-ray scattering