Excitation energies of levels in 27Al and 28Si