Solar driven electrochromic photoelectrochemical fuel cells for simultaneous energy conversion, storage and self-powered sensing.