The impact of substrate properties and thermal annealing on tantalum nitride thin films