Ecohydrology for implementation of the EU water framework directive