Empirical Bayes estimation for queueing systems and networks