Study of the Dalitz decay J /ψ →e+e-η