Irreversibility and maximum generation in k-generalized statistical mechanics