Atomic structure and spectral lines