Use of an automated spring balance for the simultaneous measurement of sorption and swelling in polymeric films