Functional integrals in quantum field theory and statistical physics