Shipping costs for Intelligence in War: Knowledge of the Enemy from Napoleon to Al-Qaeda