cosmospec: fast and detailed computation of the cosmological recombination radiation from hydrogen and helium | Synapse