A Gromov--Wasserstein Geometric View of Spectrum-Preserving Graph Coarsening