Evolutionary costs and benefits of a newly discovered symbiosis between the social amoeba Dictyostelium and bacteria