Scattering of sine-Gordon kinks on potential wells