Using photoelectric principles to make photovoltaic cells