Dimensionality-dependent self-energy corrections and exchange-correlation potential in semiconductor nanostructures