Retention and recycling of plasma edge hydrogen isotopes in C and TiC