Selectively absorbing small-molecule solar cells for self-powered electrochromic windows