Applications of persistent homology in nuclear collisions