Optimizing solar cell performance by simultaneous consideration of grid pattern design and interconnect configuration