Quantum Phase Slips in Superconducting Wires with Weak Inhomogeneities