Influence of porosity on compressive and tensile strength of cement mortar