Model-independent extraction of two-photon effects in elastic electron–proton scattering