Autonomous Demand Response in Heterogeneous Smart Grid Topologies