Colorless-to-black electrochromic devices based on ambipolar electrochromic system consisting of cross-linked poly(4-vinyltriphenylamine) and tungsten trioxide with high optical contrast in visible and near-infrared regions