Two-particle Bose–Einstein correlations in pp collisions at (Formula presented.) 0.9 and 7 TeV measured with the ATLAS detector