The Ter: a Mediterranean river case-study in Spain