Phonon spectra and phase transitions in van der Waals ferroics MM’P2X6