Millimeter and Submillimeter Heterodyne Observations of Titan: Retrieval of the Vertical Profile of HCN and the12C/13C Ratio