From Correction to Mastery: Reinforced Distillation of Large Language Model Agents