Spectral embedding of large graphs and dynamic networks