With electric car hype slowing, the gas engine is making an unexpected comeback—and some automakers are betting big on its return.