An explicit formula for the Webster torsion of a pseudo-hermitian manifold and its application to torsion-free hypersurfaces