Coherent quantum phase slips in spatially inhomogeneous Josephson junction chains