Temperature-compensated FBG-based 3D shape sensor using single-mode fibers