Temperature sensor made of polymer-derived ceramics for high-temperature applications