Determining the cointegrating rank in nonstationary fractional systems by the exact local Whittle approach