Understanding flash thermography