Optimization of grid design for solar cells at different illumination levels