Investigation of the viscoelastic effect on optical-fiber sensing and its solution for 3D-printed sensor packages.