A Generalized Ising-like Model for Spin Crossover Nanoparticles