INTEGRATING DISTRIBUTED ENERGY RESOURCES INTO THE SMART GRID A