Theoretical analysis of the adsorption of metal ions to the surface of melanin particles