Effects of self-heating and phase change on the thermal profile of hydrogen isotopes in confined geometries