Singular perturbation problems in semiconductor devices