Investigation of defective materials by means of infrared thermography