Modelling the performance of rainwater collection systems: towards a generalised approach