Use of methanolysis for the determination of total ellagic and gallic acid contents of wood and food products.