Influence of wettability variations on dynamic effects in capillary pressure