The solar leader expanded into software, storage, inverters, and robotics. Its evolution offers three practical moves for building durable growth.