Einstein's contributions to atomic physics