The much-coveted CEO role is the pinnacle for many talented senior executives. Developing certain attributes can help them get there—and leave a legacy.