silver futures end at a two-week high; gold posts small gain