Adsorption of Metal Ions on Chitosan and Chemically Modified Chitosan and Their Application to Hydrometallurgy