Arbitrary order 2D virtual elements for polygonal meshes: part 2., inelastic problem