Finite-size analysis of a two-dimensional Ising model within a nonextensive approach