Engineers are developing energy storage technologies that are cheaper, safer and more efficient.