Was the Monroe doctrine effective during the Mexican American war