The photoneutron cross sections of 28Si and 24Mg