The structure of the sd-shell nuclei