Geometrical Effects on the Magnetic Properties of Nanoparticles