Gravar-mail: Designing string-of-beads vaccines with optimal spacers