fixed bugs with n_max_iter in compare_dft_photon_config
(#343)