Irreversible quasistatic evolutions by minimizing movements