Complexation properties of a homologous series of linear polythioethers grafted onto macroporous polystyrene matrices. Selective binding of mercury(II) and silver(I)