gold rises for second day as dollar resumes decline