Enhancing slow- and fast-light effects in quantum-dot semiconductor waveguides through ultrafast dynamics.