Membranes for artificial photosynthesis