Resonant Raman scattering and exciton localization in GaP:N and GaAsxP1−x:N