Light propagation in a solid doped with erbium ions: From ultraslow light to the superluminal regime