LM$^2$otifs : An Explainable Framework for Machine-Generated Texts Detection