Automatically derived catchment boundaries and channel networks and their hydrological applications