Proton transfer of magnolol in ground and excited states