Modification of glassy carbon in contact with metal ions