Elon Musk, the chief executive of Tesla Motors, offered to buy SolarCity in an all-stock deal for $2.8 billion, The New York Times reports. The electric car company aims to create a renewable-energy giant by collecting clean electricity and putting it to work propelling cars.