A hydrologic feature detection algorithm to quantify seasonal components of flow regimes