Magnetic Structures and Stresses in Thin Films II. Thermodynamical Treatment and Discussion