Battery weight has long vexed engineers designing electric cars for the mass market.