NiO-based sensor for in situ CO monitoring above 1000 °C: behavior and mechanism