DETROIT — As their company was swirling around the financial drain in the early 2000s, General Motors executives came up with an idea to counter its gas-guzzling image and point the way to transportation of the future: An electric car with a gas-engine backup that could travel anywhere. At Detroit’s auto show in 2007, they