Electric cars have gone from pricey purchases to some of the biggest bargains on the used-car lot, as resale values for the vehicles have tumbled. Two years ago, some used electric-car models were selling for as much or more than new ones, because of a supply-chain crisis that resulted in a broader …