A Distributive Approach of Microgrid Control based on System Frequency