Regulations may drive freight companies to adopt electric trucks at a faster pace than car buyers.