Dioxane-based extraction process for production of high quality lignin