Preparation of thermally stable, low dielectric constant, pyridine‐based polyimide and related nanofoams