Controlling ⟨S2⟩ in broken-symmetry density functional theory calculations via constrained optimization | Synapse