Synthesis of a Multielement Flame Retardant and Its Application in Epoxy Resin