How terrorists groups resemble manufacturing firms