Stochastic Frequency Control of Grid-connected Microgrids