Multiscale modeling of effects due to impurity clustering in semiconductor devices