Functionalized fibrous materials for the removal of dyes