Conversion of light energy into electric energy