Optimal management of cattle grazing in a seasonally dry tropical forest ecosystem under rainfall fluctuations