CP Properties of Higgs Boson Interactions with Top Quarks in the tt¯H and tH Processes Using H→γγ with the ATLAS Detector