Gamma-ray spectra from the radiative capture of 14.1 MeV neutrons in Mg, Si, P and Ca