Maintenance of permeable habitable subsurface environments by earthquakes and tidal stresses