The effect of liquid structure on contact angle hysteresis