A phosphorous-based bi-functional flame retardant for rigid polyurethane foam