Wavelength selective separation of metal ions using electroactive ligands.