Bionanocomposites for wastewater treatment