Vibrational spectra and conformation of polyethylene glycol complexed with calcium and magnesium chlorides