The stress tensor of a molecular system: an exercise in statistical mechanics.