Effect of residual doping on optimum structure of multiquantum-well optical modulators