Microbial genome defence pathways: from molecular mechanisms to next-generation molecular tools