Dislocation pinning by substitutional impurities in an atomic-scale model for Al(Mg) solid solutions