Electrochromic properties of poly(alkoxy-terthiophenes): an experimental and theoretical investigation