The effect of size, shape and oxidation on the magnetic properties of nanoparticles