Algorithm to derive exact exchange-correlation potentials from correlated densities in atoms | Synapse