Microscopic study on the shape phase transition in the Sm isotopes: (III). E2 transition