A preliminary model for optimal control of moisture content in unsaturated soils