An effective method for evaluating thermal parameters of diode-based thermal sensors