Method for determining electron beam properties could help future ultraviolet, X-ray synchrotron light sources