Thermal evolution of the chiral condensate in SU(2) and SU(3) Chiral perturbation theory