Evolutionary pathways of repeat protein topology in bacterial outer membrane proteins