Training of the exchange-bias effect in NiO-Fe heterostructures