Distributed Generation Regulation for Intentional Islanding in Smart Grids