Thinning of photovoltaic cells