Text this: Day-ahead active and reactive power scheduling of wind turbines and battery energy storage systems for power loss and CO2 emission reduction in AC microgrids.