Preparation and properties of rigid polyimide foams derived from dianhydride and isocyanate