Polymer-solvent interactions in solutions of thermoresponsive polymers studied by NMR and IR spectroscopy