A measurement system exploiting non-linearity of thermocouples for cold junction compensation