Polymer electrolytes for safe Lithium ion, electrochromic and photovoltaic applications