Compensation of the power fluctuations in intensity-based plastic optical fiber sensors