Discrete element method for the prediction of the onset velocity in a spouted bed