Characterizing and upscaling transport, mixing and reactions in porous media