Optical, electrical, and electrochemical properties of indium tin oxide thin films studied in different layer-structures and their corresponding inorganic all-thin-film solid-state electrochromic devices