Discrete element modelling of cavity expansion in granular materials