Nanoporous photocathode and photoanode made by multilayer assembly of quantum dots.