Classical theory of the free-electron laser in a moving frame