Signal yields of keV electronic recoils and their discrimination from nuclear recoils in liquid xenon