Fitting the Coulomb potential variationally in linear-combination-of-atomic-orbitals density-functional calculations | Synapse