Despite high sticker prices, EVs had a cost advantage over gasoline counterparts in 48 states, according to J.D. Power. Here’s why.