Self-induced transparency for ultrashort pulses propagating in a multilevel quantum medium