Inverse statistics in the foreign exchange markets