Green-function theory of the heisenberg ferromagnet in a magnetic field