Plasmid stability in fluctuating environments: population genetics of multi-copy plasmids