Synthesis and properties of phosphorus-containing epoxy resins by novel method