Gold ends at lowest level in over 2 weeks as dollar strengthens