StepMathAgent: A Step-Wise Agent for Evaluating Mathematical Processes through Tree-of-Error