Gold ends at 9-month low, down for second straight week