electrical device that converts the energy of light directly into electricity by the photovoltaic effect