Stress Controlled Adhesion and Magnetic Properties of Ion Implanted Co Films