Training effect of exchange-bias bilayers within the domain state model