The shape transition in the Sm isotopes and the structure of the IBA hamiltonian