Selective accumulation of heavy metals by microorganisms