Architecture and control of large power networks with distributed generation