Tata Motors and Mahindra topped a global ranking of battery efficiency, showing India’s strength in building frugal electric cars — even as they lag on charging speed and driving range.