Gold extends losses after worst quarter in 13 years on rate fears