A new method for preparing tannin-based foams.