The emergence and diversification of dog morphology