A rank approach for studying cross-currency bases and the covered interest rate parity