Tesla’s SolarCity gamble has gone wrong