Discrete element analysis of tumbling mills