Thermal behaviour of 1,2,4-triazole and 1,2,4-triazine derivatives