Measurement of isolated photon production in deep inelastic ep scattering