Influence of diamine rigidity and dianhydride rigidity on the microstructure, thermal and mechanical properties of cross-linked polyimide aerogels