Optimal Energy Dispatch Engine for PV-DG-ESS Hybrid Power Plants Considering Battery Degradation and Carbon Emissions