Event generator for the elastic scattering of charged leptons on protons