Gold, silver set for weekly losses on tech selloff, stronger dollar