Self-organizing energy-autonomous systems