300 years of hydrological records and societal responses to droughts and floods on the Pacific coast of Central America