Triangular factors of Cauchy and Vandermonde matrices