Text this: Optimal operation of thermoelectric system considering generalized energy storage and carbon capture thermal power plant