EPiC: Towards Lossless Speedup for Reasoning Training through Edge-Preserving CoT Condensation