Controlling distributed power generation systems