Tesla makes offer to buy SolarCity