A numerical method for analyzing the permeability of heterogeneous geomaterials based on digital image processing