Colloidal particle assembly and electrochromic thin film application