Modeling and investigation of the influence of capillary heterogeneity on multiphase flow of CO₂ and brine