code to create correct synchrotron spectrum,
instead of the powerlaw approximation
data is saved in sync.txt as it takes a while to generate the spectrum.