Which event, occurring simultaneously with the emergence of militarism in Germany and Italy, significantly exacerbated the international tensions that led to World War I?