Determination of the Deformations in 24Mg and 28Si Nuclei from Electron Scattering