Maleimide-epoxy resins: preparation, thermal properties, and flame retardance