Sustainable Design and Optimization of Shale Gas Energy Systems