Magnetic properties of crystalline nanoparticles with different sizes and shapes