A dynamic optimization model for irrigation investment and management under limited drainage conditions