Gold ends lower on interest-rate outlook, but geopolitical worries buoy