Applications of quantum field theory to statistical mechanics