Tiny batteries do tight-rope act on nanowire