Transition of light propagation from slow light to superluminal light in a four-level system