Physics- and image-based prediction of fluid flow and transport in complex porous membranes and materials by deep learning