Shift Harnack inequality and integration by parts formula for semilinear stochastic partial differential equations