Control and islanding detection of Photovoltaic-Wind electrical system-diesel generator based microgrid