Computational modeling of capillary forces interacting between dispersive components in porous materials and influencing their structure formation