Chemical binding in small molecules by the spin-density-functional formalism