The influence of thermal gradients on the characterization of Schottky-barrier diodes