Solar energy conversion into electricity and heat