Measuring anomalous WW$$\gamma $$γ and t$$\bar{\text {t}}\gamma $$t¯γ couplings using top+$$\gamma $$γ production at the LHC