High-precision measurement of the swelling of microspheres