Download quantization effects in semiconductor inversion and accumulation