Photothermal examination of an adhesive layer