Image analysis method for heterogeneity and porosity characterization of biomimetic hydrogels