The Galerkin analysis for the random periodic solution of semilinear stochastic evolution equations