Use of a theoretical model to investigate RF and DC reactive sputtering of titanium and chromium oxide coatings