Quantum field theory of topological defects as inhomogeneous condensates