Atomic astrophysics and spectroscopy