Discriminating cascading processes in nonlinear optics: A QED analysis based on their molecular and geometric origin