Integrating Demand-Side Resources into the Electric Grid: Economic and Environmental Considerations