Role of debris dams in the structure and functioning of low-gradient headwater streams