Extracting the phase of high-order harmonic emission from a molecule using transient alignment in mixed samples