HR leaders are a critical part of developing future CEOs—here’s what they need to know to do it right