Connectivities and diameters of circulant graphs