Compensation technique for environmental and light source power variations applied in a polymer optical fiber curvature sensor for wearable devices