Water as Solvent in Polyimide Synthesis: Thermoset and Thermoplastic Examples