Studies on carbonaceous sorbents prepared from agricultural wastes for the removal of metals and dyes from water