Statistical modeling and simulation of threshold variation under dopant fluctuations and line-edge roughness