Confined quantum systems : dipole transition moment of two- and three-electron quantum dots, and of helium and lithium atoms in a harmonic oscillator potential