what is a pyrometer used for