In situ optical studies of thermal stability of iodine-doped polyazomethine thin films