Text this: Analysis and mitigation of greenhouse gases by replacing traditional energy with a hybrid energy system using battery optimization