Influence of crystalline and amorphous microscopic morphology on the capacitance performance and electrochromic phenomenon of triazine-based polyimides