Adsorption of polyelectrolytes on silica and gold surfaces