causes of World War I including the formation of European alliances and the roles of imperialism, nationalism, and militarism