Synthesis of a P/N/S-based flame retardant and its flame retardant effect on epoxy resin