Topological characterization of neutron star crusts