Automakers are shifting to electric vehicles, which could make up to one-quarter of new sales by 2030, according to analysts’ projections. However, even...