Thermal Stability and Flame Retardancy of a Cured Trifunctional Epoxy Resin with the Synergistic Effects of Silicon/Titanium