The Israel-Hamas war has provoked widespread reactions denouncing war crimes. But what exactly are the rules of war?