Spectral learning of multivariate extremes