The primary reason for the announcement of the Monroe doctrine in 1823 was