Dietscan: A common approach for analysing dietary patterns