Adhesion of thin films