Text this: Automated identification of bulk structures, two-dimensional materials, and interfaces using symmetry-based clustering