Local normal modes, lattice vibrations and phase transitions