Polyimides: Effect of molecular structure and cure on thermomechanical behavior