Finite volume methods for deterministic and stochastic PDEs