gold ends lower as dollar firms on greek delay