Optical fiber sensor-fused additive manufacturing and its applications in residual stress measurements