Analysis of the frequency-based control of a master/slave micro-grid