Mechanical properties of tannin-based rigid foams undergoing compression