How to match batteries with photovoltaic cells