An ab initio study of the thermoelectric enhancement potential in nano-grained TiNiSn.