Researchers are harnessing the power of sugar to fuel electronics.