Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning