Classical cluster formation, application to multifragmentation of nuclei