The Dedekind-Mertens lemma and the contents of polynomials