Lincoln, Lieber and the Laws of War: The Origins and Limits of the Principle of Military Necessity