Mechanistics of nickel sorption by activated sludge