Gold rises to Rs 31,100; silver holds steady at Rs 39,900