Empirical Bayes estimation for random dot product graph representation of the stochastic blockmodel