who did puerto rico belong to before the u.s