Characterization of the two-photon transition phase in the buildup process of Rabi oscillations