Study on hydration of poly(N-vinylcaprolactam) microgels by near-IR and mid-IR spectroscopy