A nonlocal damage and plasticity model extended to dynamic FEM analysis