Development and implementation of inelastic material models for use in FEMDEM numerical methods with applications