Thermodynamic analysis of structural transformations induced by annealing of amorphous Si–C–N ceramics derived from polymer precursors