Controlled growth of Co nanofilms on Si(100) by ion-beam deposition