retrieving product's subcategory name

I am trying to place links to all the subcategory a product is assigned to on the product detail page.

I was able to retrieve all the subcategory ID but that's all I can get.

Can anyone help me get the category names and URL for each of these category ID in TPL file or override?

Thank you!