Real-time dynamics in quantum-impurity systems: a time-dependent numerical renormalization-group approach.