Investigations of the hydrophobic and hydrophilic interactions in polymer–water systems by ATR FTIR and Raman spectroscopy