Work function and thermal stability of Ti1−xAlxNy for dual metal gate electrodes