Structure and properties of polyimide aerogels with different skeleton flexibilities