Method for measuring water diffusion in a coating applied to a substrate