Changes in vibrational modes near the magnetic phase transition in magnetostrictive materials