Doping in quantum cascade lasers. II. GaAs∕Al0.15Ga0.85As terahertz devices