Spectral Ranking Inferences based on General Multiway Comparisons