Theoretical approach for determining the relation between the morphology and surface magnetism of Co 3 O 4