The giant dipole resonance in the transition region of the samarium isotopes