Electric and magnetic multipole integrals in STO basis sets: an analytical approach