Role of restriction-modification systems in prokaryotic evolution and ecology