Photovoltaic and lithium batteries