Quantum theory and atomic structure