Determination of antineutrino spectra from nuclear reactors