Impacts of construction of dam on the flow regimes and water quality: a case study from Turkey