Quantitative Characterization of Effective Porosity in Cement-Based Composite Materials