Gold ends sharply lower, but registers weekly gain