Gold, silver gain on safe-have bids, technical buying