Analysis of quantum effects in non-uniformly doped MOS structure