Effect of type of dislocation structure and grain size on the applicability of the Cottrell-Stokes law in alloys