Almost sure approximation of Wong-Zakai type for stochastic partial differential equations