Gold, silver extend gains as weaker dollar