Lifetime and strength tests of tantalum and tungsten under thermal shock for a Neutrino Factory target