Smart thermocouples for in-line lyophilization monitoring