INTEGRATION OF DISTRIBUTED ENERGY RESOURCES IN SMART GRIDS