Facile synthesis of trimethylammonium grafted cellulose foams with high capacity for selective adsorption of anionic dyes from water.