A model potential function for carbon systems: clusters