Obama, Romney battle over foreign policy in final U.S. presidential debate