Formation of Quasar Nuclei in the Hearts of Ultraluminous Infrared Galaxies