Observation of the Formation of 0-π Pulses in Rotation Spectra of HCN and HBr