Ford, GM and Lucid have joined a collaboration led by the U.S. Department of Energy that wants to know how electric vehicles might boost the nation’s future energy grid.