A two-level structure for advanced space power system automation