Companies squeezed from two sides as investments in both electric and combustion engine vehicles erode margins