Layering transition in confined molecular thin films: Nucleation and growth.