Effects of waterlogging at different stages and durations on maize growth and grain yields