Correlation between the structural disorder studied by EXAFS and the magnetic properties of intercalated MnPS3