How does a doctor diagnose thoracic outlet syndrome?