Biological removal of heavy metals from acid wastewaters