Rheological changes and kinetics of water uptake by poly(ionic liquid)-based thin films.