Measuring higher-order interferences with a five-path interferometer