Quantum confinement, core level shifts, and dopant segregation in P-doped Si⟨110⟩ nanowires