Impact of the surface phase transition on magnon and phonon excitations in BiFeO3 nanoparticles