Anomalous phonon behavior near the phase transition in ferroelastic-ferroelectric Gd2(MoO4)3