An effective self-test method for extracting thermal parameters of thermopile IR sensors