gold ends lower as platinum, palladium rally