Text this: Optimum Energy Flow Management of a Grid-Tied Photovoltaic-Wind-Battery System considering Cost, Reliability, and CO2 Emission