Characterizing quantum morphology through topological data analysis