Finite element approximation of a periodic Ginzburg-Landau model for type-II superconductors