Dimensionally Stable Polyimide Frameworks Enabling Long-Life Electrochemical Alkali-Ion Storage.