Measurement of the hadronic form factor in D0→K-e+νe decays