Surface modification of rare earth Sm-doped WO3 films through polydopamine for enhanced electrochromic energy storage performance.