Modelling and analysing neuronal and epidemiological dynamics on structured static and dynamic networks