Using the average spectrum method to extract dynamics from quantum Monte Carlo simulations