Vibrational structure of crystal-field spectra in layered 3 d -metal dihalides