Rise and fall of historic tram networks: Logistic approximation and discontinuous events