A framework for power system restoration