Finite-size effects in the Gross-Neveu model with allowance for isospin and baryon chemical potentials