Structural changes and pressure-induced amorphization in rare earth titanates Re2Ti2O7 (RE: Gd, Sm) with pyrochlore structure