How does a mechanical seal work in a pump?