Electronic structure and properties of materials for artificial photosynthesis