Monitoring the thermally induced transition from sp3-hybridized into sp2-hybridized carbons