Revealing the Interplay of Structural Phase Transitions and Ferroelectric Switching in Mixed Phase BiFeO3