Modelling maize yield response to plant density and water and nitrogen supply in a semi-arid region