how do you get the electron configuration for an anion?