Electromagnetic properties of sd shell nuclei