Synthesis of a lignin-based phosphorus-containing flame retardant and its application in polyurethane