Inherent structure theory of networks and power system harmonics