Characterization and thermal degradation of polyimide and polyamide liquid crystalline polymers