Predicting capillarity of mudrocks