Studies on generalized midpoint integration in rate-independent plasticity with reference to plane stress J2-flow theory