Decay of solutions of the wave equation outside nontrapping obstacles