Soft x-ray resonant magnetic powder diffraction on PrNiO3