Diagnosing carpal tunnel syndrome