Effect of heat treatments on the performance of polymer optical fiber sensor.