Why is amitriptyline used for pain