Smart Curtailment of Renewable Energy Resources for Increasing Capacity of Distribution Grids