Subadditivity and stability of a class of discrete-event systems