Fluid ascent through the solid lithosphere and its relation to earthquakes