German firms are investing heavily in electric cars, once shunned for their high cost and limited operating range but now benefiting from recent advances in battery technology and a backlash against diesel fumes. Technological advances to increase the reach of an electric car by up to 50 percent…