Dynamics of the Generation of Independent Orbital-Angular-Momentum Modes in a Photonic Chip