Defect identification in heat transfer problems using boundary data