Storing renewable energy on a large scale is one of the biggest challenges facing the energy transition.