gold tops rs 31,000 on global cues; silver above rs 47k