Computation of far-field solutions based on exact nonreflecting boundary conditions for the time-dependent wave equation