Gold ends sharply lower as German political turmoil lifts dollar