Approximating the coefficients in semilinear stochastic partial differential equations