On inverses of Vandermonde and confluent Vandermonde matrices