Two essays on the substitutability of cash holdings and lines of credit