Thermal expansion of gels: a novel method for measuring permeability