Measurement of inclusive charmless semileptonic B-meson decays at the endpoint of the electron momentum spectrum