Use of Green Functions in the Theory of Ferromagnetism. I. General Discussion of the Spin-S Case