Extrapolating gravitational-wave data from numerical simulations