how does the trend in electronegativity relate to the general trends in ionization energy and the magnitude of electron affinity?