Finite size and surface effects on the magnetic properties of cobalt ferrite nanoparticles