Measurement of the phase between strong and electromagnetic amplitudes of J/ψ decays