Defects in ion-implanted hcp-titanium: A first-principles study of electronic structures