Creates the electron configuration for an atom with the given number of electrons.