van der Waals and Casimir interactions between atoms and carbon nanotubes