How social media is rewriting the rules of modern warfare