Modelling thin film growth in the Ti-Ag system