Effects of Phosphorus and Boron Compounds on Thermal Stability and Flame Retardancy Properties of Epoxy Composites