I read that when an electron is added to nitrogen atom, energy is required, but when it is added to a phosphorus atom, energy of 60 kJ/mol is released. I expected that since both N and P have stable half filled p subshells, both should require energy to add an electron to them. Then why should P release energy?