The role of antimicrobial peptides in the evolution of endosymbiotic protein import