Text this: Distributed frequency regulation system for interconnected microgrids based on heterogeneous agent theory