X-ray diffraction and spectroscopic investigations of phase transitions in linear chain compounds M2 [Pt(CN)4]3 · 21H2O, with M = Dy, Er, Tb, Y