Gamma Rays from Neutron Resonance Capture in Mg, Si, P and S