Flow regime patterns and their controlling factors in the Ebro basin (Spain)