Phase stability, mechanical and electronic properties of Hf-Te alloys from first-principles calculations