Measuring azimuthal and radial modes of photons