Economic control of fertilizer in highly productive pastoral systems. I. A theoretical framework for the fertilization problem