Effects of charging energy on the 2D phase transition in granular NbN cermet films