Nucleation and growth of thin films