The use of pulse-compression thermography for detecting defects in paintings