Optical Fock-state generation with large number of photons based on atoms coupled to an optical parametric oscillator