Changes in the acid structure of wood due to ageing and fossilization processes