Analysis of a plastic optical fiber-based displacement sensor.