Influence of microstructure and fracture on the transport properties in cement-based materials