Creating a leadership pipeline within an organization can save a company — here’s how to do it.