Thermally stable high effective work function TaCN thin films for metal gate electrode applications