Multifractal regime detecting method for financial time series