A Method for Determining the Length of FBG Sensors Accurately