Real-time monitoring and gradient feedback enable accurate trimming of ion-implanted silicon photonic devices | Synapse