Critical state in Josephson junction arrays as models of a bi-dimensional superconducting granular system