Convergence Rates of Empirical Bayes Posterior Distributions: A Variational Perspective