Spatially resolved analysis and minimization of resistive losses in high-efficiency Si solar cells