Coherent manipulation of light pulses in a multilevel atomic system