Energy networks and regulation