The Transformation and Demise of Terrorist Organizations: Causes and Categories