Inclusion of electron betatron motion on longitudinal Wiggler-undulator radiation