Removal and selective recovery of heavy metals from electroplating effluents