Evaluation of effects of dams on river ecosystem service functions in China