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