Spectral dimension, Euclidean embeddings, and the metric growth exponent