Computation of the elements of eclipsing binary systems in the frequency-domain