restriction enzymes function in bacteria