Electron rich APFO polymer with dual electrochromism and electroluminescence