Tradeoffs Between Impurity Gettering, Bulk Degradation, and Surface Passivation of Boron-Rich Layers on Silicon Solar Cells