Variational formulations, convergence and stability properties in nonlocal elastoplasticity