Role of secondary phases and thermal cycling on thermoelectric properties of TiNiSn half-Heusler alloy prepared by different processing routes