Effect of water availability and genetic diversity on flowering phenology, synchrony, and reproductive investment in maize.