Metal adsorption of tannin-based rigid foams