The dam dilemma: How to build dams to best protect community, environment