why do magnesium, phosphorus, and zinc exhibit slightly higher first ionization energies than the general trend within each of their periods?

(not asking about the Be-B or N-O exceptions)