Modelling of reactive sputtering of titanium boride