Optimization Model for Mitigating Global Warming at the Farm Scale: An Application to Japanese Rice Farms