EXAFS study of the local structure around substituting metal ions in La2CuO4