Integration by parts formula and shift Harnack inequality for stochastic equations