A genomic investigation of ecological differentiation between free-living and Drosophila-associated bacteria