Insights into the Mechanism of Ground and Excited State Double Proton Transfer Reaction in Formic Acid Dimer