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