Harnessing spectral representations for subgraph alignment