Multipole expansion of the retarded interatomic potential energy