Understanding galvanic replacement reactions : the case of Pt and Ag