Energy and the Subsurface: Modeling Hydraulic Fracturing and Geological Carbon Storage