First-principles study on the effects of N and Al doping on the mechanical properties and electronic structures of TiC