A model for grain boundary structure based on random close packing