The European powers recognized the islands as part of the Spanish East Indies in 1874. In 1884, which country purchased the Marshall Islands