Accurate determination of the magnetic anisotropy in cluster-assembled nanostructures