Horizontal gene transfer contributes to the wide distribution and evolution of type II restriction-modification systems