As renewable sources of energy like wind and solar gain traction, scientists and engineers are eyeing new ways to store that energy in a cost-efficient manner — laying the groundwork for a future in which renewables rival fossil fuels in powering our homes and vehicles.