Mean Convergence of Periodic Pseudotrajectories and Invariant Measures of Dynamical Systems