The assassination of Franz Ferdinand, the event which led to war, was largely the result of inept security measures and blind luck