Phosphonated compounds as flame retardants for epoxy resins