Optimization of identity operation in NMR spectroscopy via genetic algorithm: Application to the TEDOR experiment