Quantum field theory of crystals and extended objects