Limit theorems for out-of-sample extensions of the adjacency and Laplacian spectral embeddings