Elastic-mode algorithms for mathematical programs with equilibrium constraints: global convergence and stationarity properties