Effective Dynamics of Stochastic Partial Differential Equations