Statistical multifragmentation of nuclei