Great CEOs know that the transition to their successor will define their legacy and cement the strength of what they’ve built. Here’s how they do it right.