Residual Error Compensation of In-situ Inspection System for Precision Machining of Complex Components