Poorly graphitized carbon as a new cosmothermometer for primitive extraterrestrial materials