An approximation theorem of wong-zakai type for nonlinear stochastic partial differential equations