Frequency and Voltage Control of Islanded Microgrids