Use of materials science principles in battery design: gelatin in lithium batteries