Peculiarities of doping of nanograined thermoelectric TiNiSn by 3d noble and transition metals