Evolution of invasiveness in Escherichia coli and Shigella