The interplay of restriction-modification systems with mobile genetic elements and their prokaryotic hosts