The production, spectrum and evolution of cosmic strings in brane inflation