Simulation of small-amplitude frequency-dispersive transient waves by means of the mild-slope equation