Gold post back-to-back gains, ends at 2-month high