Orbital localization induced magnetization in nonmetal-doped phosphorene