Gold ends lower, while palladium marks highest finish since 2014