Modelling and analysis on the thermal tuning of fiber Bragg gratings for optical communications applications