Crystallization of a polymer on a surface