Atomic structure and the periodic table