Spatiotemporal behavior of floods and droughts and their impacts on agriculture in China