How to measure the capacity of photovoltaic cells