How to correctly measure photovoltaic cells