A new way of measuring effects of financial crisis on contagion in currency markets