It can be fiendishly complex to measure the social and environmental effects of large-scale dams.