Economic tradeoffs in preserving riparian habitat