Spacetime-varying couplings and Lorentz violation