Scientists have designed a new prototype battery that mimics the structure of the human intestines.