Reduction of threading dislocation density and suppression of cracking in sputter-deposited AlN templates annealed at high temperatures