DEM analysis of the influence of the intermediate stress ratio on the critical-state behaviour of granular materials