Functional techniques in physics