Reduction of stresses in thin films by high energy ion beams