Modification of wood and wood-based materials