Combined bleaching or impregnating and drying of wood