Influence of contact angle on hysteresis in mercury porosimetry