(Co)polyimides from commonly used monomers, and their nanocomposites