A model to simulate leakage through joints in water distribution systems