Band shape in vibrational spectra and interactions of polar molecules in liquids