Conversion of light to electricity