Thermal vulnerability detection in integrated electronic and photonic circuits using infrared thermography