Tesla tops California green-car credit sales in past year