Modeling and characterization of hydraulic stimulation and induced seismicity in geothermal and shale gas reservoirs