Structure-sensitive search-match procedure for powder diffraction