Chemical modifications of lignocellulosic materials and their application for removal of cations and anions from aqueous solutions