Semi-discretization of stochastic partial differential equations on Rd by a finite-element technique