A water balance model for characterization of length of growing period and water stress development for rainfed lowland rice