Tesla closes on $2.7 billion mixed offering of shares, debt