Gold ends sharply higher, then holds gains after Fed meeting minutes