Thermal characterization of Bragg gratings in polarization-maintaining optical fibres: analysis of birefringence and regeneration