Text this: Economic and environmental power dispatch for energy management systems applied to microgrids with wind energy resources and battery energy storage systems