Functional Methods in Quantum Field Theory and Statistical Physics