Text this: Extracting stationary segments from non-stationary synthetic and cardiac signals