Simulation of granular mixing in a static mixer by the discrete element method