A tangent-secant approach to rate-independent elastoplasticity: formulations and computational issues